<template>
  <div>
    b组件
    <p>{{ Flag }}</p>
  </div>
</template>

<script lang="ts" setup>
import Bus from "./bus";
import { ref } from "vue";
let Flag = ref<boolean | undefined>(undefined);
Bus.on("on-click", (flag: boolean) => {
  Flag.value = flag;
});
</script>
<style lang="less" scoped>
div {
  width: 400px;
  height: 400px;
  background: blanchedalmond;
}
</style>
